<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新增</title>
<link rel="stylesheet" href="${ctx}/css/base.css">
<link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all">
	<style type="text/css">
		/* 谷歌 */
		input::-webkit-outer-spin-button,
		input::-webkit-inner-spin-button {
			-webkit-appearance: none;
			appearance: none;
			margin: 0;
		}
		/* 火狐 */
		input{
			-moz-appearance:textfield;
		}
	</style>
</head>
<body>
	<div class="body_top_marger10 body_center">
		<div class="layui-main layui-form-pane">
			<form class="layui-form" action="">
			
				<div class="layui-form-item">
					<label class="layui-form-label"><font color="red">*</font>入库人</label>
					<div class="layui-input-inline">
						<input type="text" id="create_userName" value="${userName}" disabled
							name="create_userName" required
							lay-verify="required" placeholder="输入个中文名称吧" autocomplete="off"
							class="layui-input layui-disabled">
					</div>
					<label class="layui-form-label"><font color="red">*</font>入库时间</label>
					<div class="layui-input-inline">
						<input id="create_inTime" onclick="layui.laydate({elem: this, festival: true,theme:'#393D49'})"
							name="create_inTime" required lay-verify="required" placeholder="请选择入库时间" class="layui-input">
					</div>
				</div>
				
				<div class="layui-form-item">
					<label class="layui-form-label"><font color="red">*</font>供应商</label>
					<div class="layui-input-inline">
							<select name="vender" required lay-verify="required" >
											<option value="">搜索选择</option>
											 <c:forEach var="venderModule" items="${venderList}">
												 <option value="${venderModule.id}">${venderModule.venderName}</option>
										     </c:forEach>
							</select>
					</div>
					<%--<label class="layui-form-label"><font color="red">*</font>备注</label>--%>
					<%--<div class="layui-input-inline">--%>
							<%--<textarea id="create_remark" name="create_remark" placeholder=" 随便输点什么吧"--%>
																<%--style="width:99%;height: 36px;line-height:36px;resize:none;"></textarea>--%>
					<%--</div>--%>
				</div>

				<div class="layui-form-item layui-form-text">
					<label class="layui-form-label">备注</label>
					<div class="layui-input-block">
						<textarea id="create_remark" name="create_remark" placeholder=" 随便输点什么吧" class="layui-textarea"></textarea>
					</div>
				</div>
				
				
				<input  type="button" value="增加详情" id="addAssetType" class="layui-btn layui-btn-normal"></input>
				<br/><br/>
				
				<c:set var="assetTypeAlls" value="${assetTypeAll}"/>
				<input id="assetTypeAllsInput" value="${assetTypeAll}" hidden/>
				
				<table id="itemTable">
					<tr id="item_tr_1">
						<td>
							<div class="layui-form-item">
								<label class="layui-form-label"><font color="red">*</font>类型</label>
								<div class="layui-input-inline">
									<select id="assetTypeSel_1"  lay-filter="assetTypeSel_1" name="assetTypeSelect" required lay-verify="required" >
											<option value="">类型选择</option>
											 <c:forEach var="assetType" items="${assetTypeAlls}">
												 <option value="${assetType.id}">${assetType.name}</option>
										     </c:forEach>
									 </select>
								</div>
							</div>	
						</td>
						
						
						<td>
							<div class="layui-form-item">
								<label class="layui-form-label"><font color="red">*</font>型号</label>
								<div class="layui-input-inline">
									<select id="assetModelSel_1" lay-filter="assetModelCheck" name="assetModelSelect" required lay-verify="required" lay-search="">
											<option value="">型号选择</option>				
									 </select>
								</div>
							</div>	
						</td>
						
						
						<td>
							<div class="layui-form-item">
								<label class="layui-form-label"><font color="red">*</font>数量</label>
								<div class="layui-input-inline">
									<input type="number" name="assetTypeNum" lay-verify="required|number"  required
									placeholder="输入个数量吧" autocomplete="off" class="layui-input">
								</div>
							</div>	
						</td>
						<td>
						</td>
					</tr>
				</table>
				
			
				<div class="layui-form-item">
					<div class="body_center">
						<button class="layui-btn" lay-submit lay-filter="formSubmit">保存</button>
						<button type="reset" class="layui-btn layui-btn-primary">重置</button>
					</div>
				</div>
			</form>
		</div>
	</div>
	<script src="${ctx}/js/jquery.min.js"></script>
	<script src="${ctx}/layui/layui.js"></script>
	
	<script type="text/javascript">
		var rootPath = '${ctx}';
		var assetTypeAlls = $("#assetTypeAllsInput").val();
		//var assetTypeAlls = "${assetTypeAll}";
	</script>
	<script src="${ctx}/js/jfTable.js"></script>
	<script src="${ctx}/js/assetin/assetin_add.js"></script>
</body>
</html>